package com.spring.security.web.iputil;

import java.io.File;

import junit.framework.TestCase;

public class IPtest  extends TestCase {
	public void testIp() {
		// 指定纯真数据库的文件名，所在文件夹
		IPSeeker ip = new IPSeeker("QQWry.Dat", "C:"+File.separator+"tool"+File.separator+"qqwry.dat");
		//File.separator+"swf"+File.separator+"qqwry.dat"
		// 测试IP 58.20.43.13
		System.out.println(ip.getIPLocation("58.20.43.13").getCountry() + ":"
				+ ip.getIPLocation("58.20.43.13").getArea());
	}
}
